package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.BuzMemberGradeMapper;
import cn.source.system.domain.BuzMemberGrade;
import cn.source.system.service.IBuzMemberGradeService;

/**
 * 考生当年同位分Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2025-05-11
 */
@Service
public class BuzMemberGradeServiceImpl implements IBuzMemberGradeService 
{
    @Autowired
    private BuzMemberGradeMapper buzMemberGradeMapper;

    /**
     * 查询考生当年同位分
     * 
     * @param id 考生当年同位分主键
     * @return 考生当年同位分
     */
    @Override
    public BuzMemberGrade selectBuzMemberGradeById(Long id)
    {
        return buzMemberGradeMapper.selectBuzMemberGradeById(id);
    }

    /**
     * 查询考生当年同位分列表
     * 
     * @param buzMemberGrade 考生当年同位分
     * @return 考生当年同位分
     */
    @Override
    public List<BuzMemberGrade> selectBuzMemberGradeList(BuzMemberGrade buzMemberGrade)
    {
        return buzMemberGradeMapper.selectBuzMemberGradeList(buzMemberGrade);
    }

    /**
     * 新增考生当年同位分
     * 
     * @param buzMemberGrade 考生当年同位分
     * @return 结果
     */
    @Override
    public int insertBuzMemberGrade(BuzMemberGrade buzMemberGrade)
    {
        return buzMemberGradeMapper.insertBuzMemberGrade(buzMemberGrade);
    }

    public int insertBuzMemberGradeList(List<BuzMemberGrade> list){
        return buzMemberGradeMapper.insertBuzMemberGradeList(list);
    }

    /**
     * 修改考生当年同位分
     * 
     * @param buzMemberGrade 考生当年同位分
     * @return 结果
     */
    @Override
    public int updateBuzMemberGrade(BuzMemberGrade buzMemberGrade)
    {
        return buzMemberGradeMapper.updateBuzMemberGrade(buzMemberGrade);
    }

    /**
     * 批量删除考生当年同位分
     * 
     * @param ids 需要删除的考生当年同位分主键
     * @return 结果
     */
    @Override
    public int deleteBuzMemberGradeByIds(Long[] ids)
    {
        return buzMemberGradeMapper.deleteBuzMemberGradeByIds(ids);
    }

    /**
     * 删除考生当年同位分信息
     * 
     * @param id 考生当年同位分主键
     * @return 结果
     */
    @Override
    public int deleteBuzMemberGradeById(Long id)
    {
        return buzMemberGradeMapper.deleteBuzMemberGradeById(id);
    }

    public int deleteBuzMemberGradeByMemberId(String id){
        return buzMemberGradeMapper.deleteBuzMemberGradeByMemberId(id);
    }
}
